home *** CD-ROM | disk | FTP | other *** search
- #include "bbs.h"
-
- int FlagPause(int count)
- {
- int MoreStat;
- char str[200];
-
- if(gnsflag!=1) LineCount=LineCount+count;
-
- if(gnsflag!=1&&(LineCount>=(User.LineLength?User.LineLength:22))) {
- LineCount=0;
- FOREVER {
- AEPutStr("(Pause)...(f)lags, More(Y/n/ns)? ");
- MoreStat=LineInput("",str,190,KEYBOARD_TIMEOUT);
- if(MoreStat<0) return(MoreStat);
-
- if(str[0]=='\0'||str[0]=='y'||str[0]=='Y') break;
-
- if(Whence_The_Logon>=REMOTE_LOGON) {
- MoreStat=CheckCarrier();
- if(MoreStat==FALSE)
- return(NO_CARRIER);
- }
- if((str[0]=='N')||(str[0]=='n')) {
- if((str[1]=='S')||(str[1]=='s')) {
- gnsflag=1;
- break;
- } else {
- AEPutStr("\r\n");
- return(FAILURE);
- }
- }
- if((str[0]=='F')||(str[0]=='f')) {
- if(strlen(str)>2) MoreStat=FlagFiles(str+2);
- else MoreStat=FlagFiles(NULL);
- if(MoreStat<FAILURE) return(MoreStat);
- //if(AnsiColor)
- AEPutStr("A");
- }
- }
- //if(AnsiColor)
- AEPutStr("A");
- }
- return(SUCCESS);
- }
-
-